wonder_ggsm_sanctuary_magdalene = {
	picture = GFX_wonder_strip_ggsm_magdalene
	model = wonder_cathedral
	allow_construction = yes
	is_in_water = no
	allow_coastal = yes
	show_model = yes

	potential = {
		religion = catholic
		is_female = yes
		is_adult = yes
		society_member_of = ggsm_order_sacred_magdalene
		society_rank = 4
	}

	active = {
		ROOT = {
			religion = catholic
		}
	}

	flags = {
		holy_building
		inspires_piety
		is_destructible
		cost_high
		ggsm_magdalene_sanctuary
	}

	available_upgrades = {
		upgrade_ggsm_great_chapel
		upgrade_ggsm_hall_open_mercy
		upgrade_ggsm_hospice_mercy
		upgrade_ggsm_pilgrims_hospice
		upgrade_ggsm_grand_scriptorium
		upgrade_ggsm_school_magdalene
		upgrade_ggsm_cisterns_kept_mercies
		upgrade_ggsm_sacred_baths
		upgrade_ggsm_chapter_house
		upgrade_ggsm_shrine_magdalene
		upgrade_ggsm_great_kitchens
		upgrade_ggsm_gardens_magdalene
		upgrade_ggsm_house_courtesans
		upgrade_ggsm_guest_house
		upgrade_ggsm_rose_cloister
	}

	# Stage I - House of the Sacred Magdalene
	stage = {
		allow = { }
		build_time = 325
		restore_time = 150
		loot_time = 6
		gold_cost_flat = 2500
		gold_cost_ticking = 3
		restore_cost_flat = 500
		restore_cost_ticking = 2
		upgrade_slots = 3
		local_modifier = { }
		owner_modifier = {
			monthly_character_piety = 0.05
			monthly_character_prestige = 0.05
		}
	}

	# Stage II - Sanctuary of the Sacred Magdalene
	stage = {
		allow = { }
		build_time = 375
		restore_time = 200
		loot_time = 6
		gold_cost_flat = 2750
		gold_cost_ticking = 5
		restore_cost_flat = 550
		restore_cost_ticking = 2
		upgrade_slots = 3
		local_modifier = { }
		owner_modifier = {
			monthly_character_piety = 0.10
			monthly_character_prestige = 0.05
		}
	}

	# Stage III - Great Sanctuary of the Sacred Magdalene
	stage = {
		allow = { }
		build_time = 375
		restore_time = 200
		loot_time = 6
		gold_cost_flat = 3000
		gold_cost_ticking = 5
		restore_cost_flat = 600
		restore_cost_ticking = 2
		upgrade_slots = 3
		local_modifier = { }
		owner_modifier = {
			monthly_character_piety = 0.10
			monthly_character_prestige = 0.10
		}
	}

	# Stage IV - Basilica of the Sacred Magdalene
	stage = {
		allow = { }
		build_time = 325
		restore_time = 200
		loot_time = 2
		gold_cost_flat = 3500
		gold_cost_ticking = 5
		restore_cost_flat = 700
		restore_cost_ticking = 2
		upgrade_slots = 3
		local_modifier = { }
		owner_modifier = {
			monthly_character_piety = 0.15
			monthly_character_prestige = 0.10
			catholic_opinion = 3
		}
	}
}
